home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17579 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  913 b 

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: VC++ 4.0 and C++ syntax
  5. Date: 16 Apr 1996 16:00:36 GMT
  6. Organization: Borland International
  7. Message-ID: <4l0g74$fs4@druid.borland.com>
  8. References: <317290A7.57C0@spr.com>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <317290A7.57C0@spr.com>, sudip@spr.com says...
  15. >
  16. >Greetings,
  17. >
  18. >VC++ 4.0 allows the following syntax to obtain the address of
  19. >a class member function
  20. >
  21. >CObArray Ob;
  22. >Ob.SetSize(1);
  23. >
  24. >if (0 == Ob.GetSize ) // compiles and links
  25. >{
  26. >  return;
  27. >}
  28. >
  29. >The call Ob.GetSize gets the address of the GetSize() fn on
  30. >CObArray. Is this legal syntax?...the ARM indicates that the
  31. >address of a member function (or a member) is obtained using
  32. >the :: operator. 
  33.  
  34. No, it is not legal. It never has been.
  35.  
  36.